using System.ComponentModel.DataAnnotations;

namespace B.S.NewMedical.Domain.User
{
    /// <summary>
    /// 权限类型实体模型
    /// </summary>
    public class PermissionTypeModel : EntityModel
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public required string TypeName { get; set; }

        /// <summary>
        /// 类型代码
        /// </summary>
        [Required]
        [StringLength(50)]
        public required string TypeCode { get; set; }

        /// <summary>
        /// 类型描述
        /// </summary>
        [StringLength(200)]
        public string? Description { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int SortOrder { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; } = true;
    }
} 